Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2016 RLX attempt 1 #51

Open
wants to merge 5 commits into
base: master-new
Choose a base branch
from

Conversation

thirdstick
Copy link

@thirdstick thirdstick commented Jan 14, 2025

2016 RLX attempt 1

Summary by Sourcery

New Features:

  • Initial support for the 2016 Acura RLX, including fingerprinting, values, and DBC data.

Copy link

sourcery-ai bot commented Jan 14, 2025

Reviewer's Guide by Sourcery

This pull request adds support for the 2016 Acura RLX.

Entity relationship diagram for ECU fingerprints

erDiagram
    ACURA_RLX ||--o{ ECU : contains
    ECU {
        string vsa
        string fwdRadar
        string srs
    }
    ECU ||--o{ FIRMWARE : has
    FIRMWARE {
        string version
    }

    note "New ECU fingerprints added for Acura RLX"
Loading

Class diagram for the updated Honda car configuration

classDiagram
    class CAR {
        +ACURA_RLX: HondaNidecPlatformConfig
    }

    class HondaNidecPlatformConfig {
        +CarDocs[]
        +CarSpecs
        +radar_dbc_dict
        +flags
    }

    class ACURA_RLX_Config {
        +mass: 1836.0 LB_TO_KG
        +wheelbase: 2.70
        +steerRatio: 13.0
        +centerToFrontRatio: 0.3794
        +tireStiffnessFactor: 0.444
        +min_steer_speed: 0 MPH_TO_MS
    }

    CAR --> HondaNidecPlatformConfig
    ACURA_RLX_Config --> HondaNidecPlatformConfig

    note for ACURA_RLX_Config "New configuration added for 2016 Acura RLX"
Loading

File-Level Changes

Change Details Files
Added fingerprint data for the 2016 Acura RLX.
  • Added fingerprints for the VSA, FwdRadar, and SRS ECUs for the 2016 Acura RLX.
opendbc/car/honda/fingerprints.py
Added platform configuration for the 2016 Acura RLX.
  • Added CAR.ACURA_RLX to the CAR enum.
  • Defined car specifications and radar DBC dictionary for the 2016 Acura RLX, reusing the configuration from the 2016-2018 Acura RDX.
opendbc/car/honda/values.py
No changes to the Acura RDX 2018 CAN DBC file were made in this pull request. opendbc/dbc/generator/honda/acura_rdx_2018_can.dbc

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @thirdstick - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Please improve the PR title and description to explain what changes are being made and why. Include information about any testing performed.
  • The vehicle parameters (mass, wheelbase, steerRatio, etc.) appear to be copied from the RDX. Please verify these against actual 2016 RLX specifications.
  • Using the RDX's DBC file for the RLX needs justification. Are you certain the CAN messages are identical between these different models?
Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@@ -246,6 +246,12 @@ class CAR(Platforms):
radar_dbc_dict('acura_rdx_2018_can_generated'),
flags=HondaFlags.NIDEC_ALT_SCM_MESSAGES,
)
ACURA_RLX = HondaNidecPlatformConfig(
[HondaCarDocs("Acura RDX 2016-18", "AcuraWatch Plus", "All", min_steer_speed=0. * CV.MPH_TO_MS)],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): The car model in HondaCarDocs appears to be incorrect - this should be for RLX, not RDX

This could cause confusion about which vehicle models are supported and might lead to compatibility issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant